package slydm.geektimes.training.web.mvc.servlet.helper;

import java.lang.reflect.Method;
import java.util.Set;

/**
 * 处理方法信息类
 *
 * @author wangcymy@gmail.com(wangcong) 3/4/21 10:14 PM
 */
public class HandlerMethodInfo {

  private final String requestPath;

  private final Method handlerMethod;

  private final Set<String> supportedHttpMethods;

  public HandlerMethodInfo(String requestPath, Method handlerMethod, Set<String> supportedHttpMethods) {
    this.requestPath = requestPath;
    this.handlerMethod = handlerMethod;
    this.supportedHttpMethods = supportedHttpMethods;
  }

  public String getRequestPath() {
    return requestPath;
  }

  public Method getHandlerMethod() {
    return handlerMethod;
  }

  public Set<String> getSupportedHttpMethods() {
    return supportedHttpMethods;
  }

}
